//
//  UPCustomTabBarView.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/17.
//

#import <UIKit/UIKit.h>


@class UPCustomTabBarView;

@protocol UPCustomTabBarViewDelegate <NSObject>
- (void)tabBar:(UPCustomTabBarView *_Nullable)tabBar didSelectItemAtIndex:(NSInteger)index;
@end

NS_ASSUME_NONNULL_BEGIN

@interface UPCustomTabBarView : UIView

@property (nonatomic, weak) id<UPCustomTabBarViewDelegate> delegate;
@property (nonatomic, copy) NSArray<NSString *> *itemTitles;
@property (nonatomic, copy) NSArray<UIImage *> *itemIcons;
@property (nonatomic, copy) NSArray<UIImage *> *selectedItemIcons;
@property (nonatomic, assign) NSInteger selectedIndex;
@property (nonatomic, strong) UIColor *normalColor;
@property (nonatomic, strong) UIColor *selectedColor;
@property (nonatomic, assign) CGFloat itemSpacing;
@property (nonatomic, assign) CGFloat barHeight;
@property (nonatomic, strong) UIImageView *bgImageView;

@end

NS_ASSUME_NONNULL_END
